package com.fishery.processing.entity.vo;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fishery.processing.util.Unchangeable;
import io.swagger.annotations.ApiModelProperty;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @author run
 * @since 2021/1/22 10:34
 */
public class InputVo {

    @ApiModelProperty(value = "投入品编号")
    private String id;

    @ApiModelProperty(value = "投入品名称")
    @NotNull
    private String inputName;

    @ApiModelProperty(value = "生产日期")
    @JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss")
    private Date inputProduceDate;

    @ApiModelProperty(value = "到期时间")
    @JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss")
    private Date inputExpireDate;

    @ApiModelProperty(value = "检验人")
    @NotNull
    private String inspector;

    @ApiModelProperty(value = "供应商名称")
    @NotNull
    private String supplierName;

    @ApiModelProperty(value = "供应商地址")
    private String supplierAddr;

    @ApiModelProperty(value = "供应商电话")
    private String supplierPhone;

    @ApiModelProperty(value = "供应商生产许可证")
    private String supplierLicense;

    @ApiModelProperty(value = "投入品图片")
    private String inputPicture;

    @ApiModelProperty(value = "规格 /mm")
    private BigDecimal specification;

    @ApiModelProperty(value = "加工厂编号")
    private String processingFactoryId;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getInputName() {
        return inputName;
    }

    public void setInputName(String inputName) {
        this.inputName = inputName;
    }

    public Date getInputProduceDate() {
        return inputProduceDate;
    }

    public void setInputProduceDate(Date inputProduceDate) {
        this.inputProduceDate = inputProduceDate;
    }

    public Date getInputExpireDate() {
        return inputExpireDate;
    }

    public void setInputExpireDate(Date inputExpireDate) {
        this.inputExpireDate = inputExpireDate;
    }

    public String getInspector() {
        return inspector;
    }

    public void setInspector(String inspector) {
        this.inspector = inspector;
    }

    public String getSupplierName() {
        return supplierName;
    }

    public void setSupplierName(String supplierName) {
        this.supplierName = supplierName;
    }

    public String getSupplierAddr() {
        return supplierAddr;
    }

    public void setSupplierAddr(String supplierAddr) {
        this.supplierAddr = supplierAddr;
    }

    public String getSupplierPhone() {
        return supplierPhone;
    }

    public void setSupplierPhone(String supplierPhone) {
        this.supplierPhone = supplierPhone;
    }

    public String getSupplierLicense() {
        return supplierLicense;
    }

    public void setSupplierLicense(String supplierLicense) {
        this.supplierLicense = supplierLicense;
    }

    public String getInputPicture() {
        return inputPicture;
    }

    public void setInputPicture(String inputPicture) {
        this.inputPicture = inputPicture;
    }

    public BigDecimal getSpecification() {
        return specification;
    }

    public void setSpecification(BigDecimal specification) {
        this.specification = specification;
    }

    public String getProcessingFactoryId() {
        return processingFactoryId;
    }

    public void setProcessingFactoryId(String processingFactoryId) {
        this.processingFactoryId = processingFactoryId;
    }

    @Override
    public String toString() {
        return "InputVo{" +
                "id='" + id + '\'' +
                ", inputName='" + inputName + '\'' +
                ", inputProduceDate=" + inputProduceDate +
                ", inputExpireDate=" + inputExpireDate +
                ", inspector='" + inspector + '\'' +
                ", supplierName='" + supplierName + '\'' +
                ", supplierAddr='" + supplierAddr + '\'' +
                ", supplierPhone='" + supplierPhone + '\'' +
                ", supplierLicense='" + supplierLicense + '\'' +
                ", inputPicture='" + inputPicture + '\'' +
                ", specification=" + specification +
                ", processingFactoryId='" + processingFactoryId + '\'' +
                '}';
    }
}
